package com.example.demo.form;

import lombok.Data;
import org.hibernate.validator.constraints.NotEmpty;

/**
 * Description:
 * User: SaintChan
 * Date: 2018-02-05
 * Time: 上午 11:26
 */
@Data
public class OrderForm {

    /**
     * 买家信息
     */
    @NotEmpty(message = "姓名必填")
    private String name;

    @NotEmpty(message = "手机号必填")
    private String phone;

    @NotEmpty(message = "地址必填")
    private String address;

    @NotEmpty(message = "openid必填")
    private String openid;

    @NotEmpty(message = "购物车不能为空")
    private String items;

}
